﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Data;

namespace QL_LichCT.Entities
{
    class COLICHLYTHUYET
    {
        private string _malop;

        public string malop
        {
            get { return _malop; }
            set { _malop = value; }
        }

        private int _thu;

        public int thu
        {
            get { return _thu; }
            set { _thu = value; }
        }

        private int _tiet_bd;

        public int tiet_bd
        {
            get { return _tiet_bd; }
            set { _tiet_bd = value; }
        }

        private int _sotiet;

        public int sotiet
        {
            get { return _sotiet; }
            set { _sotiet = value; }
        }

        private string _maphong;

        public string maphong
        {
            get { return _maphong; }
            set { _maphong = value; }
        }

        public COLICHLYTHUYET()
        {
        }

        public COLICHLYTHUYET(DataRow row)
        {
            this._malop = row["malop"].ToString();
            this._thu = (int)row["thu"];
            this._tiet_bd = (int)row["tiet_bd"];
            this._sotiet = (int)row["sotiet"];
            this._maphong = row["maphong"].ToString();
        }

        public COLICHLYTHUYET(string malop, int thu, int tiet_bd, int sotiet, string maphong)
        {
            this._malop = malop;
            this._thu = thu;
            this._tiet_bd = tiet_bd;
            this._sotiet = sotiet;
            this._maphong = maphong;
        }

    }
}
